.class public final Lcom/flyfish/moregames/MyViewHandler;
.super Ljava/lang/Object;
.source "MyViewHandler.java"


# instance fields
.field private context:Landroid/content/Context;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 0
    .parameter "context"

    .prologue
    .line 14
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 16
    iput-object p1, p0, Lcom/flyfish/moregames/MyViewHandler;->context:Landroid/content/Context;

    .line 17
    return-void
.end method


# virtual methods
.method public getView()Landroid/view/View;
    .locals 9

    .prologue
    const/16 v8, 0x11

    const/4 v7, -0x2

    .line 21
    new-instance v0, Landroid/widget/ImageView;

    iget-object v6, p0, Lcom/flyfish/moregames/MyViewHandler;->context:Landroid/content/Context;

    invoke-direct {v0, v6}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 22
    .local v0, icon:Landroid/widget/ImageView;
    new-instance v4, Landroid/widget/TextView;

    iget-object v6, p0, Lcom/flyfish/moregames/MyViewHandler;->context:Landroid/content/Context;

    invoke-direct {v4, v6}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 26
    .local v4, name:Landroid/widget/TextView;
    new-instance v1, Landroid/widget/TextView;

    iget-object v6, p0, Lcom/flyfish/moregames/MyViewHandler;->context:Landroid/content/Context;

    invoke-direct {v1, v6}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    .line 30
    .local v1, info:Landroid/widget/TextView;
    new-instance v2, Landroid/widget/LinearLayout;

    iget-object v6, p0, Lcom/flyfish/moregames/MyViewHandler;->context:Landroid/content/Context;

    invoke-direct {v2, v6}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 31
    .local v2, ll:Landroid/widget/LinearLayout;
    const/4 v6, 0x0

    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 32
    invoke-virtual {v2, v8}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 34
    new-instance v5, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v5, v7, v7}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 35
    .local v5, params2:Landroid/widget/LinearLayout$LayoutParams;
    new-instance v3, Landroid/widget/LinearLayout;

    iget-object v6, p0, Lcom/flyfish/moregames/MyViewHandler;->context:Landroid/content/Context;

    invoke-direct {v3, v6}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    .line 36
    .local v3, lls:Landroid/widget/LinearLayout;
    const/4 v6, 0x1

    invoke-virtual {v3, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 37
    invoke-virtual {v3, v8}, Landroid/widget/LinearLayout;->setGravity(I)V

    .line 40
    invoke-virtual {v3, v4, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 41
    invoke-virtual {v3, v1, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 43
    invoke-virtual {v2, v3, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 44
    invoke-virtual {v2, v0, v5}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 46
    return-object v2
.end method
